package com.sh.data.engine.application.model.request.dataquality;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * @author tinglan.ys
 * @description:
 * @date 2022/2/18 下午4:42
 */
@Data
@Schema
public class SaveDataQualityScheduleRequest {

    @Schema(description = "表id")
    private Long tblId;

    @Schema(description = "调度状态 0-未冻结 1-冻结")
    private Integer status;

    @Schema(description = "生效开始时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date effectiveDateStart;

    @Schema(description = "生效结束时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date effectiveDateEnd;

    @Schema(description = "调度周期 0-月 1-周 2-天 3-小时 4-分钟")
    private Integer cycle;

    @Schema(description = "执行开始时间的小时")
    private Integer startTimeHour;

    @Schema(description = "执行开始时间的分钟")
    private Integer startTimeMin;

    @Schema(description = "执行结束时间的小时")
    private Integer endTimeHour;

    @Schema(description = "执行结束时间的分钟")
    private Integer endTimeMin;

    @Schema(description = "月、周为执行日期 ，小时、分钟为执行间隔")
    private String execPoint;

    @Schema(description = "跨周期依赖 0-不依赖上一周期 1-等待上一周期结束")
    private Integer cycleDependence;

}
